//
//  SingletonMapView.m
//  project
//
//  Created by 圆圆陈 on 2017/12/25.
//  Copyright © 2017年 黄建华. All rights reserved.
//

#import "SingletonMapView.h"

@implementation SingletonMapView

+(SingletonMapView *)sharedInstance{
    static dispatch_once_t predicate;
    static SingletonMapView * sharedInstance;
    dispatch_once(&predicate, ^{
        sharedInstance=[[SingletonMapView alloc] initWithFrame:[UIScreen mainScreen].bounds];
        //用户位置追踪
        sharedInstance.userTrackingMode = MKUserTrackingModeFollowWithHeading;
        sharedInstance.mapType = MKMapTypeStandard;
        sharedInstance.showsScale = YES;
        sharedInstance.showsUserLocation = NO;
    });
    return sharedInstance;
}

@end
